package com.xindacloud.sms.portal.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xindacloud.sms.portal.dao.SmsTaskTotalMapper;
import com.xindacloud.sms.portal.entity.SmsTaskTotal;
import com.xindacloud.sms.portal.service.ISmsTaskTotalService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;


@Slf4j
@Service
public class SmsTaskTotalServiceImpl extends ServiceImpl<SmsTaskTotalMapper, SmsTaskTotal> implements ISmsTaskTotalService {

    @Override
    public SmsTaskTotal saveSmsTaskTotal(SmsTaskTotal taskTotal) {
        save(taskTotal);
        return taskTotal;
    }

    @Override
    public boolean updateSmsTaskTotal(SmsTaskTotal total) {
        return updateById(total);
    }
}
